import type { TenantListType } from "../onlineUser/type"

export interface OrgTreeState {
    formState: {
        filterText:string,
        tenantId:undefined | number 
    },
    tenantList:TenantListType,
    orgData:OrgDataType[]
    loading:boolean,
    expandedKeys :any[]
    autoExpandParent:boolean,
    checkedKeys:any[],
    selectedKeys:any[]
}

export interface OrgDataType {
    pid: number | null | number[]
    name: string
    code: string
    level: number
    type: string | null
    directorId: number | null
    directorName: string | null
    orderNo: number
    status: number
    remark: string
    children: OrgDataType[] | null
    director:any
    disabled: boolean
    tenantId: number | undefined
    createTime: string
    updateTime: string | null
    createUserId: number | null
    createUserName: string | null
    updateUserId: number | null
    updateUserName: string | null
    isDelete: boolean
    id: number
}